package com.zhongwang.business.module.cost.service;

import com.zhongwang.business.module.cost.mapper.SheetMapper;
import com.zhongwang.business.module.cost.model.DsnProStruct;
import com.zhongwang.business.module.cost.model.Project;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SheetService {
    @Autowired
    private SheetMapper sheetMapper;

    /** 按项目编号查询项目信息 */
    public List<Project> findProjectByCode(String code) {
        return sheetMapper.findProjectByCode(code);
    }
    /** 根据项目号查询部分 */
    public List<DsnProStruct> findPartByProjectCode(String code, String type) {
        return sheetMapper.findPartByProjectCode(code, type);
    }
}
